<%--
    Document   : index
    Created on : 12.02.2010, 22:48:51
    Author     : Morfant
--%>

<%@page import="java.util.Map"%>

<%@page import="java.util.List"%>
<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <%@include file="/header.jsp" %>  
    <script src="javascript/JSCal2-1.9/src/js/jscal2.js"></script>
    <script src="javascript/JSCal2-1.9/src/js/lang/ru.js"></script>
    <link rel="stylesheet" type="text/css" href="javascript/JSCal2-1.9/src/css/jscal2.css" />
    <link rel="stylesheet" type="text/css" href="javascript/JSCal2-1.9/src/css/border-radius.css" />
    <link rel="stylesheet" type="text/css" href="javascript/JSCal2-1.9/src/css/steel/steel.css" />   
    <body>
        <div class="page">
            <%@include file="/cap.jsp" %>
            <div id="main">
                <h2>Результат запроса</h2>
                <%List<String> results = (List<String>) request.getAttribute(PluginConst.REPORT_QUERY_RESULT);%>
                <fieldset>
                    <legend>Результаты</legend>
                    <p>
                        <span class="highlight-delete-item">
                            <label for="">Выручка</label>
                        </span>
                        <%=((Double.valueOf(results.get(0)) - Double.valueOf(results.get(1))))%>
                    </p>
                    <p>
                        <span class="highlight-delete-item">
                            <label for="">Расход</label>
                        </span>
                        <%=results.get(1)%>
                    </p>
                </fieldset>

                <div id="objectmenucontainer">
                    <ul id="objectmenu">
                           <li><a href="<%= response.encodeURL("query-action.do")
                                + "?"
                                + PluginConst.SUBACTION
                                + "="
                                + PluginConst.GET_REVENUE_AND_PRIME_CONST%>">Вернуться к запросу</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </body>
</html>
